package com.dss.code_generation.util.converter;

import com.dss.code_generation.vo.TablesVo;
import com.dss.code_generation.domain.Tables;
import org.springframework.stereotype.Component;

/**
 * @author dongshoushan
 * @date 2020年07月07日 18:21
 */
@Component
public class TablesConverter extends BaseConverter<Tables, TablesVo> {
    @Override
    protected void convert(Tables source, TablesVo target) {
        target.setFlagName(source.getFlag()==1?"已生成":"已忽略");
        super.convert(source, target);
    }
}
